package com.sxz.sbs.module.sms.adapter;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.sxz.sbs.R;
import com.sxz.sbs.module.sms.mode.SmsCustomBean;
import com.zhy.view.flowlayout.FlowLayout;
import com.zhy.view.flowlayout.TagAdapter;

import java.util.List;

/**
 * Created by tian on 2018/1/20 0020.
 */

public class TagSmsAdapter extends TagAdapter<SmsCustomBean>{
    private Context context;
    public TagSmsAdapter(Context context,List<SmsCustomBean> datas) {
        super(datas);
        this.context = context;
    }

    @Override
    public View getView(FlowLayout parent, int position, SmsCustomBean smsCustomBean) {
        View view = View.inflate(context, R.layout.item_tag_layout, null);
        TextView tv = view.findViewById(R.id.tv_item_tag);
        tv.setText(smsCustomBean.getTxt_UserName());
        return view;
    }
}
